<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" src="js/jquery-1.5.js"></script>
<script type="text/javascript">
	$(function() {
		var div = $("#child");
		$("#more").click(
				function() {
					var file = $("<input type='file'>").appendTo(div);
					var btn = $("<input type='button' value = 'remove'>").appendTo(div);
					var br = $("<br/>").appendTo(div);
					btn.click(function() {
						file.remove();
						btn.remove();
						br.remove();
					});
				});
	});
</script>
</head>
<body>
<form><input type="file"> <input id="more" type="button"
	value="more"> <br />
<div id="child"></div>
</form>
</body>
</html>